//
//  ManageView.m
//  Project two framework
//
//  Created by rimi on 16/7/29.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import "ManageView.h"

@implementation ManageView


+ (instancetype)showOtherView
{
    static ManageView *manageView = nil;
//    if (!manageView) {
        manageView = [[ManageView alloc]init];
//    }
    return manageView;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        [self addOtherView];
    }
    return self;
}
- (void )addOtherView{
    [super addOtherView];
    [self.imageView addSubview:self.fundLabel];
    [self.imageView addSubview:self.abbreviationLabel];
    [self.imageView addSubview:self.unitLabel];
    [self.imageView addSubview:self.accumulativeLabel];
    [self.imageView addSubview:self.deadlineLabel];
    
}

- (UILabel *)fundLabel
{
    if (_fundLabel == nil) {
        _fundLabel = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 150, 300, 50)];
            label.textAlignment = NSTextAlignmentLeft;
            label.font = [UIFont boldSystemFontOfSize:18];
            label;
        });
    }
    return _fundLabel;
}

- (UILabel *)abbreviationLabel
{
    if (_abbreviationLabel == nil) {
        _abbreviationLabel = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 200, 300, 50)];
            label.textAlignment = NSTextAlignmentLeft;
            label.font = [UIFont boldSystemFontOfSize:18];
            label;
        });
    }
    return _abbreviationLabel;
}

- (UILabel *)unitLabel
{
    if (_unitLabel == nil) {
        _unitLabel = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 250, 300, 50)];
            label.textAlignment = NSTextAlignmentLeft;
            label.font = [UIFont boldSystemFontOfSize:18];
            label;
        });
    }
    return _unitLabel;
}

- (UILabel *)accumulativeLabel
{
    if (_accumulativeLabel == nil) {
        _accumulativeLabel = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 300, 300, 50)];
            label.textAlignment = NSTextAlignmentLeft;
            label.font = [UIFont boldSystemFontOfSize:18];
            label;
        });
    }
    return _accumulativeLabel;
}

- (UILabel *)deadlineLabel
{
    if (_deadlineLabel == nil) {
        _deadlineLabel = ({
            UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(50, 350, 300, 50)];
            label.textAlignment = NSTextAlignmentLeft;
            label.font = [UIFont boldSystemFontOfSize:18];
            label;
        });
    }
    return _deadlineLabel;
}


@end
